package com.stedu.service;

import com.stedu.bean.Owner;
import com.stedu.exception.SteduException;

import java.util.List;

public interface OwnerService {
    //添加
    boolean insert(Owner o) throws SteduException;
    //删除
    boolean delete(Integer oid) throws SteduException;
    //修改
    boolean update(Owner o) throws SteduException;
    //根据id查询
    Owner selectByOid(Integer oid);
    //查询所有
    List<Owner> selectByOnameAndOphone(String oname, String ophone);


}
